import Vue from 'vue'
import {Grid,
   GridItem,
   XInput,
   XButton,
   XDialog,
   WechatEmotion,
   ToastPlugin,
   Tabbar,
   TabbarItem,
   Tab,
   TabItem,
   Swiper,
   Swipeout,
   SwipeoutItem,
   SwipeoutButton,
   Spinner,
   Selector,
   Radio,
   Popup,
   PopupRadio,
   PopupPicker,
   PopupHeader,
   Msg,
   Masker,
   Loading,
   LoadMore,
   InlineLoading,
   Group,
   Flexbox,
   FlexboxItem,
   Confirm, 
   ConfirmPlugin,
   Checklist,
   Cell,
   Badge,
   Alert,
   Actionsheet,
   XTextarea,
   Blur,
   Checker,
   CheckerItem,
   Panel,
   ButtonTab,
   ButtonTabItem,
   Divider,
   CellBox
  } from 'vux'
Vue.component('grid', Grid)
Vue.component('grid-item', GridItem)
Vue.component('x-input', XInput)
Vue.component('divider', Divider )
Vue.component('x-button', XButton)
Vue.component('x-dialog', XDialog)
Vue.component('wechat-emotion', WechatEmotion)
Vue.component('tabbar', Tabbar)
Vue.component('tabbar-item', TabbarItem)
Vue.component('tab', Tab)
Vue.component('tab-item', TabItem)
Vue.component('swiper', Swiper)
Vue.component('swipeout', Swipeout)
Vue.component('swipeout-item', SwipeoutItem)
Vue.component('swipeout-button', SwipeoutButton)
Vue.component('spinner', Spinner)
Vue.component('selector', Selector)
Vue.component('radio', Radio)
Vue.component('popup', Popup)
Vue.component('popup-radio', PopupRadio)
Vue.component('popup-picker', PopupPicker)
Vue.component('popup-header', PopupHeader)
Vue.component('msg', Msg)
Vue.component('loading', Loading)
Vue.component('masker', Masker)
Vue.component('load-more', LoadMore)
Vue.component('inline-loading', InlineLoading)
Vue.component('group', Group)
Vue.component('flexbox', Flexbox)
Vue.component('flexbox-item', FlexboxItem)
Vue.component('checklist', Checklist)
Vue.component('cell', Cell)
Vue.component('badge', Badge)
Vue.component('alert', Alert)
Vue.component('actionsheet', Actionsheet)
Vue.component('x-textarea', XTextarea)
Vue.component('blur', Blur)
Vue.component('checker', Checker)
Vue.component('checker-item', CheckerItem)
Vue.component('panel', Panel)
Vue.component('button-tab', ButtonTab)
Vue.component('button-tab-item', ButtonTabItem)
Vue.component('confirm', Confirm)
Vue.component('cell-box', CellBox)

//以插件的形式引入
Vue.use(ToastPlugin,{position: 'middle'})
Vue.use(ConfirmPlugin)

